home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / doslynx / src / globals.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  3.4 KB  |  118 lines

  1. //    Copyright (c) 1993, University of Kansas, All Rights Reserved
  2. //
  3. //    File:        globals.cpp
  4. //    Purpose:    Contain global variables used in the DOSLYNX project.
  5. //    Remarks/Portability/Dependencies/Restrictions:
  6. //        The global variables used here are specific to the DOSLYNX
  7. //        souce files, not the libraries used to supplement the project.
  8. //    Revision History:
  9. //        12-09-93    created
  10. #include"globals.h"
  11. #include"image.h"
  12. #include<stddef.h>
  13.  
  14. //     Increase default stack size from 0x1000k to ...
  15. unsigned _stklen = 0x3000U;
  16.  
  17. //    Set the overlay buffer size to ....
  18. //    Small size since will allow user to use EMS and XMS memory for overlay.
  19. unsigned _ovrbuffer = 0x0C00U;
  20.  
  21. //    WWW stuff defining the application
  22. char *HTAppName = "DosLynx";
  23. char *HTAppVersion = "0.71a";
  24.  
  25. //    Ini path variable.
  26. char *cp_inipath = NULL;
  27.  
  28. //    Temporary directory name to write temporary files.
  29. char *cp_TempDir = NULL;
  30.  
  31. //    Tracing variable
  32. #ifndef RELEASE
  33. char c_trace = 0;
  34. #endif // RELEASE
  35.  
  36. //    A collection of currently loaded HTexts.
  37. TNSCollection *TNSCp_LoadedHTexts = NULL;
  38.  
  39. //    The maximum number of loaded HTexts.
  40. unsigned short int usi_MaxLoadedHTexts = 10U;
  41.  
  42. //    Colors for HText drawing.
  43. //    Not using palette, not profiecent in use or easy to do.
  44. //    Will compensate for monochrome and black and white manually
  45. //                                COLOR MONO  B&W
  46. unsigned short int usia_TextColor[]        = { 0x1E, 0x07, 0x07 };
  47. unsigned short int usia_AnchorColor[]        = { 0x1B, 0x07, 0x0F };
  48. unsigned short int usia_SelectedColor[]        = { 0x7B, 0x70, 0x70 };
  49. unsigned short int usia_SearchColor[]        = { 0x1C, 0x07, 0x0F };
  50. unsigned short int usia_SearchSelectedColor[]    = { 0x7C, 0x70, 0x70 };
  51.  
  52. //    Global variable for C functions in CPP to communicate through.
  53. TURLView *TURLV_current = NULL;
  54.  
  55. //    Global TCapture window
  56. TCapture *TC = NULL;
  57.  
  58. //    Pointer to void *() function to hold old new handler.
  59. void (*vfp_old_new_handler)();
  60.  
  61. //    Possible free window numbers.
  62. Boolean B_freeWin[9] = {True, True, True, True, True, True, True, True, True};
  63.  
  64. //    Last search executed.
  65. char ca_searchLast[usi_TILURLSize];
  66.  
  67. //    Graphics mode for displaying images.  NONE by default.
  68. unsigned short int usi_graphicsmode = (image_modes)image_modes_total;
  69.  
  70. //    Default printer device.
  71. char *cp_Printer = NULL;
  72.  
  73. //    Default home page or startup URL.
  74. char *cp_Home = NULL;
  75.  
  76. //    HotList file name.
  77. char *cp_HotList = NULL;
  78.  
  79. //    Error HTML file for DosLynx to display when unable to load a document.
  80. char *cp_ErrorHTML = NULL;
  81.  
  82. //    Default reply to mail address for a user.
  83. char *cp_ReplyTo = NULL;
  84.  
  85. //    Wether or not we allow any network access.
  86. int i_networked = 1;
  87.  
  88. //    Default nntp server.
  89. char *cp_nntphost = NULL;
  90.  
  91. //    EMS support.
  92. Boolean B_ems = False;
  93. unsigned short int usi_emspages = 0U;
  94.  
  95. //    XMS support.
  96. Boolean B_xms = False;
  97. unsigned long int uli_xmslength = 0UL;
  98. unsigned long int uli_xmsstart = 0UL;
  99.  
  100. //    Really safe safety pool.
  101. char *really_safe_pool[RSP_NUM];
  102.  
  103. //    Number of anchors actually skipped in document.
  104. unsigned short int usi_skipped = 0U;
  105.  
  106. //    To keep anchor stuff in concordance when messing with stopping
  107. //    their creation due to memory.
  108. char c_DidStartAnchor = 0;
  109.  
  110. //    http, gopher, ftp, and wais proxy variables.
  111. char *cp_http_proxy = NULL;
  112. char *cp_gopher_proxy = NULL;
  113. char *cp_wais_proxy = NULL;
  114. char *cp_ftp_proxy = NULL;
  115.  
  116. //    Wether or not a proxy is being used.
  117. BOOL B_proxy = FALSE;
  118.